| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | /* eslint-env jest */ |
||
| 5 | it('Gets the global state', () => { |
||
| 6 | const tokenLens = lensProp('token') |
||
| 7 | const globalState = { |
||
| 8 | store: { |
||
| 9 | state: { token: 'HET_TOKEN' } |
||
| 10 | } |
||
| 11 | } |
||
| 12 | |||
| 13 | const tokenLensInGlobal = inGlobalStateLens(tokenLens) |
||
| 14 | |||
| 15 | expect(view(tokenLensInGlobal, globalState)).toBe('HET_TOKEN') |
||
| 16 | }) |
||
| 17 | |||
| 53 |